home *** CD-ROM | disk | FTP | other *** search
- Path: jaxnet.jaxnet.com!jax!garyg
- From: garyg@jax.jaxnet.com (Gary M. Greenberg)
- Newsgroups: comp.lang.c
- Subject: Re: Check if a file exists?
- Date: 17 Apr 1996 20:38:28 GMT
- Organization: Southeast Network Services, Inc.
- Message-ID: <4l3ks4$22j@jaxnet.jaxnet.com>
- NNTP-Posting-Host: jax.jaxnet.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- Tarang Deshpande (tarang@willows.com) wrote:
- : Lawrence Kirby wrote:
- : >
- : > In article <317261E6.31D0@spectratek.co.uk>
- : > dean_darlison@spectratek.co.uk "Dean Darlison" writes:
- : >
- : > >man access
- : >
- : > If that works on your system then the contents should tell you that this
- : > function is inappropriate for the question asked.
- : >
- : > --
- : > -----------------------------------------
- : > Lawrence Kirby | fred@genesis.demon.co.uk
- : > Wilts, England | 70734.126@compuserve.com
- : > -----------------------------------------
-
-
- : Under SUNOS 5.4, LINUX 1.1.46 and conforming to SVID, AT&T, POSIX,
- : X/OPEN, and BSD 4.3
-
- : #include <unistd.h>
- : int access (const char *path, int amode)
-
- : where amode is F_OK then the function is used to test for existance.
-
- Which is fine for UNIX (which I actually prefer), but this newsgroup
- if for C -- ANSI C -- discussion. And, therefore, access has no place here.
- Doesn't help if I'm developing something on a Macintosh.
- Probably also doesn't help on PC development.
-
- The charter for this group states discussion is for the C language; there is
- only one C language ... that which is discussed in the ANSI C Standard.
- And, it's not a matter of elitism (as has been posited in other threads).
-
- gary /* the Sorcerer's Apprentice */
- Contribute to the Randal Schwartz Legal Defense Fund
- Get FREE ANSI C E-Mail Management Source Code
- Visit: http://jax.jaxnet.com/~garyg/main_page.html
-